#ifndef _MMDISK_H_
#define _MMDISK_H_

#include <linux/semaphore.h>
#include <linux/cdev.h>

#define MAX_QSET_NUM	512
#define MAX_ITEM_NUM	1024
#define MAX_ITEM_SIZE	4096


struct mmdisk_qset {
	struct mmdisk_qset *pnext;
	char *pitem[MAX_ITEM_NUM];
	int npos;
	int size;
};

struct mmdisk_dev {
	struct mmdisk_qset *phead;
	int totalsize;
	struct semaphore sem;
	struct cdev cdev;
};

#endif

